<%@ page contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<div>
	<form:form id="loginForm" name="loginForm" method="post"
		commandName="acc" action="login">
		<form:errors path="*" cssClass="errorblock" element="div" />
		<table style="width: 366px;">
			<tr>
				<td style="text-align: right; padding-right: 5px;" width="45%"><label><spring:message
							code="username" /></label></td>
				<td width="55%"><form:input class="loginInput" path="userName"
						id="inputUsername" cssErrorClass="loginInput error" /></td>
			</tr>
			<tr>
				<td style="text-align: right; padding-right: 5px;"><label><spring:message
							code="password" /></label></td>
				<td><form:password class="loginInput" id="inputPassword"
						path="userPassword" cssErrorClass="loginInput error" /></td>
			</tr>
			<tr>
				<td colspan="2"><a
					style="text-align: right; float: right; margin-right: 14px;"
					href="<c:url value="/register"/>"><spring:message
							code="donthaveaccount" /></a></td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td><input type="submit"
					style="float: right; margin-right: 14px;" name="buttonLogin"
					id="buttonLogin" value='<spring:message code="login" />' /></td>
			</tr>
		</table>
	</form:form>
</div>
<a
	href="http://www.facebook.com/dialog/oauth?client_id=459898544025226&redirect_uri=http://localhost:8080/spring-fashionshop/login/facebook&scope=email"
	style="width: 100px; 
			height: 60px; 
			background: #fff url(http://cdn.sstatic.net/Img/openid/openid-logos.png?v=8);
			background-position: -1px -456px; 
			position: relative; 
			float: left;
			margin-top: -50px;
			margin-left: 160px;"></a>
<!--Open IDs login-->
&nbsp;
<div style="margin-left: 50px; margin-top: 40px; height: 60px;">
	<form
		action="login/openid?identifier=https://www.google.com/accounts/o8/id"
		method="post">
		<input class="google openid_large_btn"
			style="position: relative;
			float: left;
			margin-left: 90px;
			margin-top: -45px;
			width: 100px; 
			height: 60px; 
			background: #fff url(http://cdn.sstatic.net/Img/openid/openid-logos.png?v=8); background-position: -1px -1px;"
			type="image" value=" " />
	</form>
	<form action="login/openid?identifier=https://me.yahoo.com"
		method="post">
		<input class="google openid_large_btn"
			style="margin-left:10px;
				margin-top: -45px;
				width: 100px; 
				height: 60px; 
				background: #fff url(http://cdn.sstatic.net/Img/openid/openid-logos.png?v=8); background-position: -1px -63px;"
			type="image" value=" " />
	</form>
</div>